package com.example.pacs.dao;

import com.example.pacs.bean.entity.Instance;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface InstanceMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Instance record);

    int insertSelective(Instance record);

    Instance selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Instance record);

    int updateByPrimaryKey(Instance record);

    /**
     * 根据SopInstanceUid查询instance是否存在
     *
     * @param sopInstanceUID instance唯一标识
     * @return 实例
     */
    Instance queryInstanceBySopInstanceUid(@Param("sopInstanceUID") String sopInstanceUID);
}